import result_resoler
import os

def get_all_bench_file():
    bench_file_names = []
    files = os.listdir(".")
    for file_name in files:
        e = os.path.splitext(file_name)[-1]
        if(e == '.html'):
            bench_file_names.append(file_name)
    return bench_file_names

def read_all_bench_file(bench_file_names):
    bench_file_contents = []
    for item in bench_file_names:
        f = open(item)
        bench_file_contents.append(f.read())
    return bench_file_contents
    



if __name__ == '__main__':
    files = get_all_bench_file()
    contents = read_all_bench_file(files)
    r = result_resoler.Result_Parser(contents, files)
    r.showImg()